<?php
namespace core\lib;
use core\lib\config;
/**
* log
*/
class log
{
	public static $class;
	//1.确定日志存储方式
	//2.写日志
	public static function init()
	{
		//确定存储方式
		$drive = config::get('log', 'DRIVE');
		$class = '\core\lib\drive\log\\' . $drive;
		self::$class = new $class;
	}
	public static function log($name, $file = 'log')
	{
		self::$class->log($name, $file);
	}
}